#include "CCSEvent.h"

CCSEvent::CCSEvent()
{
};

CCSEvent::~CCSEvent()
{
};

lvVoid CCSEvent::addProcessor(const pfEventProcessor &Processor)
{
	m_arProcessors.push_back(Processor);
};
lvVoid CCSEvent::removeProcessor(const pfEventProcessor &Processor)
{
	for (std::vector<pfEventProcessor>::iterator _itValue = m_arProcessors.begin(); _itValue != m_arProcessors.end(); _itValue++)
	{
		if((*_itValue)==Processor)
		{
			m_arProcessors.erase(_itValue);
			return;
		};
	};
};
lvVoid CCSEvent::Exec(const CCSParameter &Parameter)
{
	for(unsigned int i=0; i<m_arProcessors.size(); i++)
	{
		pfEventProcessor _pfProcessor = m_arProcessors[i];
		_pfProcessor(Parameter);
	};
};